from django.conf.urls import patterns, include, url
from django.contrib.auth.models import User

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
admin.site.unregister(User)

urlpatterns = patterns('',
    # Examples:
    url(r'^$', 'views.home', name='home'),
    
    # port api request to api/
    url(r'^api/', include('api.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    url(r'^oauth2/', include('provider.oauth2.urls', namespace = 'oauth2')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
